package com.ruoyi.project.system.presentation.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.project.system.presentation.domain.DataPresentation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 数据展示Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-20
 */
@Mapper
public interface DataPresentationMapper 
{


    public List<DataPresentation> selectDataPresentationByYear();

    public List<DataPresentation> selectDataPresentationByMonth();

    public List<DataPresentation> selectDataPresentationByWeek();

    public List<DataPresentation> selectDataPresentationBySeason();

    public List<DataPresentation> selectDataPresentationByYearMonthDay();


    public List<DataPresentation> selectList(DataPresentation dataPresentation,Integer state,Integer classifyState);




    /**
     * 根据设备id和用户名查询
     * @param equipmentId
     * @param userName
     * @return
     */

    public DataPresentation selectDataPresentationByEquipmentIdAndUserName(Long equipmentId,String userName);


    /**
     * 根据时间范围查询
     * @param beginTime
     * @param endTime
     * @return
     */
    public List<DataPresentation> selectDataPresentationByTimeHorizon(Long beginTime,Long endTime);




    /**
     * 查询数据展示列表
     * 
     * @param dataPresentation 数据展示
     * @return 数据展示集合
     */
    public List<DataPresentation> selectDataPresentationList(@Param("dataPresentation") DataPresentation dataPresentation,@Param("state") Integer state,@Param("classifyState") Integer classifyState);

    /**
     * 新增数据展示
     * 
     * @param dataPresentation 数据展示
     * @return 结果
     */
    public int insertDataPresentation(DataPresentation dataPresentation);

    /**
     * 修改数据展示
     * 
     * @param dataPresentation 数据展示
     * @return 结果
     */
    public int updateDataPresentation(DataPresentation dataPresentation);

    /**
     * 删除数据展示
     * 
     * @param id 数据展示主键
     * @return 结果
     */
    public int deleteDataPresentationById(Long id);

    /**
     * 批量删除数据展示
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDataPresentationByIds(String[] ids);
}
